<template>
  <div class="Two">
    <div>two</div>
    <p>count2:{{ count2 }}</p>
  </div>
</template>
<script>
export default {
  name: 'Two',
  inject: ['count'],
  computed: {
    count2() {
      return this.count();
    },
  },
};
</script>
<style scoped>
.Two {
  border: 3px solid red;
}
</style>
